wayland: Don't error out on G_IO_HUP until we've read G_IO_IN data
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 30 Mar 2013 18:17:07 +0000 (14:17 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 30 Mar 2013 18:20:00 +0000 (14:20 -0400)
commit8886c63a4e7f7f934f727e6d965237000eb7631e
treee26a3aa6de3bebf6fd143eadc086d6ac6d8c703d
parent50097d5baa790b46ea873c74294112194a9d622b
wayland: Don't error out on G_IO_HUP until we've read G_IO_IN data

We can get G_IO_HUP and G_IO_IN at the same time, if the compositor writes
data to us and then closes our connection.  Make sure that we dispatch events
always if we have G_IO_IN and then error out if we get G_IO_HUP after that.
gdk/wayland/gdkeventsource.c